repo: Hold an fd "repo_dir_fd" open for the toplevel too
authorColin Walters <walters@verbum.org>
Mon, 2 Feb 2015 19:56:39 +0000 (14:56 -0500)
committerColin Walters <walters@verbum.org>
Thu, 5 Feb 2015 19:15:34 +0000 (14:15 -0500)
commit3b8ed12ab24d3aa4b97ea09f5689d533fe65e3ba
treec1a05afe64608b9b429ad53518a17f331d55a48b
parente739677ea142a67e996c40e420af31602ad11682
repo: Hold an fd "repo_dir_fd" open for the toplevel too

We could just make everything relative to this, but the objects/ and
tmp/ are accessed very often, so I think it's worth holding individual
fds.

This fd can cover everything else: refs, deltas, etc.
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo.c